package com.eeprint.system.mapper.terminal;


import com.eeprint.system.domain.terminal.dto.PrintJobData;
import com.eeprint.system.domain.terminal.entity.TenantTerminal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import java.util.List;

@Mapper
@Repository
public interface TerminalMapper {

    /**
     * 查询指定租户所有打印记录
     * @return 打印记录列表
     */
    public List<PrintJobData> selectAllPrintJobByTenantID(BigInteger id);

    /**
     * @Author: wsen on 2020/10/18 21:21
     * @Description: 根据id查询终端列表
     */
    public TenantTerminal selectById(@Param("id") BigInteger id);

    /**
     * @Author: wsen on 2020/10/19 16:33
     * @Description: 通过id查找其终端名
     */
    String selectNameById(BigInteger relTerminalId);
}
